<div class="secSearch">
	<input type="hidden" name="pcancel" id="pcancel" value="0" />
    <table cellpadding="0" cellspacing="0" border="0" width="100%">
        <tbody>
            <tr>        
                <td class="firstChild" width="20%">
                    <label for="keyword">Từ khóa:</label>
                    <input type="text" name="keyword" id="keyword" value="{if isset($smarty.session.ppost)}{$smarty.session.ppost.keyword|escape}{/if}" maxlength="50"/>
                </td>
                <td width="20%">
                    <label for="cate">Danh mục cấp 1:</label>
                    <select name="cate" id="cate" onchange="this.form.submit();">
                    	<option value="0">Tất cả</option>
                        {html_options options=$arrCategory selected=$intCategory}
                    </select>
				</td>                
                <td width="20%">
                    <label for="sub">Danh mục cấp 2:</label>
                    <select name="sub" id="sub" onchange="this.form.submit();">
                    	<option value="0">Tất cả</option>
                        {html_options options=$arrSubCategory selected=$intSubCategory}
                    </select>
                </td>
                <td>
                	<label>&nbsp;</label>
                    <input type="submit" value="Tìm kiếm" class="btn"/>
                    {if isset($smarty.session.pcancel) && $smarty.session.pcancel == 1}                
                        <input type="button" value="Thôi tìm kiếm" class="btnCancel" onclick="javascript:cancelSearch(this.form);"/>
                    {/if}
                </td>
            </tr> 
        </tbody>
    </table>
</div>